//////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////

#include <maya/MFnPlugin.h>
#include "helloMaya.h"

MStatus initializePlugin(MObject obj)
{
    MStatus status;
    MFnPlugin plugin(obj, "YanGang", "0.1", "Any");

    status = plugin.registerCommand("helloMaya", helloMaya::creator);
    if (!status)
    {
        status.perror("registerCommand failed");
        return status;
    }

    return status;
}

MStatus uninitializePlugin(MObject obj)
{
    MStatus status;
    MFnPlugin plugin(obj);

    status = plugin.deregisterCommand("helloMaya");
    if (!status)
    {
        status.perror("deregister command failed");
    }

    return status;
}